package com.world.cat.model.sys;

import com.world.common.generate.auto.QField;
import com.world.common.model.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

//角色与资源关系表
@Entity
@Table(name = "sys_role_resource")
public class RoleResource extends BaseEntity {
    @QField(name = "资源url")
    @Column(name = "url")
    private String url;

    @QField(name = "角色Id")
    @Column(name = "role_id")
    private String roleId;

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
